Skip to content

修复问题 - #652

Merged
wess09 merged 1 commit into
masterfrom
dev
Jul 28, 2026
Merged

修复问题#652
wess09 merged 1 commit into
masterfrom
dev

Conversation

@wess09

@wess09 wess09 commented Jul 28, 2026

Copy link
Copy Markdown
Owner

由 Sourcery 提供的摘要

添加对云端控制的强制更新模式的支持,并将其集成到 Web UI 更新流程和调度中。

新功能:

  • 暴露一个云端强制更新控制端点,并提供辅助方法从部署配置中读取其状态。
  • 在 Web UI 更新器中添加强制更新处理,当启用强制标志时,允许检测到的更新立即运行。
  • 引入基于协程的更新检查循环,根据是否启用强制更新动态调整轮询间隔。

增强:

  • 扩展更新器以单独跟踪强制更新状态,并在已有待处理更新时重新检查强制标志。
  • 调整应用启动流程,改为调度新的自适应更新检查循环,替代之前固定时间间隔的检查函数。

测试:

  • 添加单元测试,覆盖以下场景:启用强制更新时的检测与更新行为、在禁用强制更新时的延迟更新、在已有待处理更新后再启用强制更新的行为,以及强制更新轮询计划。
Original summary in English

Summary by Sourcery

Add support for a cloud-controlled force-update mode and integrate it into the web UI updater flow and scheduling.

New Features:

  • Expose a cloud force-update control endpoint and helper to read its state from the deployment config.
  • Add force-update handling in the web UI updater, allowing detected updates to run immediately when the force flag is enabled.
  • Introduce a coroutine-based update check loop that adapts its polling interval based on whether force-update is enabled.

Enhancements:

  • Extend the updater to track force-update state separately and to re-check the force flag when an update is already pending.
  • Adjust application startup to schedule the new adaptive update-check loop instead of the previous fixed-interval check function.

Tests:

  • Add unit tests covering updater behaviour for force-update on detection, deferred updates when force is disabled, enabling force-update after an update is already pending, and the force-update polling schedule.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@wess09
wess09 merged commit e733553 into master Jul 28, 2026
7 checks passed
Repository owner locked and limited conversation to collaborators Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant